package chapter2.No2_2_synchronized同步语句块.j数据类型String的常量池特性.demo2;

/**
 * !
 *
 * @author liujian
 * @version 2016/11/14 0014
 */
public class ServiceClass {
    public void methodA(String stringParam) {
        synchronized (stringParam) {
            for(int i = 0; i < 100; i++) {
                System.out.println(Thread.currentThread().getName()+" 值"+i);
            }
        }

    }
}
